package spring.chatroom.java_chatroom.pojo.response;

import lombok.Data;


@Data
public class response {
    Boolean success;
    String message = "";
    Object data;

    public static response success(Object data) {
        response re = new response();
        re.success = true;
        re.message = "success";
        re.data = data;
        return re;
    }

    public static response fail(String message) {
        response re = new response();
        re.success = false;
        re.message = message;
        return re;
    }
}
